home *** CD-ROM | disk | FTP | other *** search
/ Champak 43 / Vol 43.iso / games / phit.swf / scripts / __Packages / CPhitPresentation.as < prev    next >
Encoding:
Text File  |  2007-07-13  |  962 b   |  33 lines

  1. class CPhitPresentation extends CMovieClipFresh
  2. {
  3.    var _soundSystem;
  4.    function CPhitPresentation()
  5.    {
  6.       super();
  7.       _root._strVer = "1.1.0";
  8.       FreshFramework._isRunningLocally = false;
  9.       FreshFramework._isRunningLocalRemoteDebug = false;
  10.       _global._dbgTraceEnabled = false;
  11.       _global._dbgAssertEnabled = false;
  12.       _root.random = new CRandom(2);
  13.       this._soundSystem = new CFreshSoundSystem(this);
  14.       this._soundSystem.SetSpatialPanParameters(240,480);
  15.       this.gotoAndStop("intro");
  16.    }
  17.    function FirstFrameInitialize()
  18.    {
  19.       FreshDebug.Trace("ver. " + _root._strVer);
  20.    }
  21.    function GetLastPlayedLevel()
  22.    {
  23.       var _loc1_ = SharedObject.getLocal("phit");
  24.       return _loc1_.data._iLevelLastPlayed;
  25.    }
  26.    function StoreLastPlayedLevel(iLevel)
  27.    {
  28.       var _loc1_ = SharedObject.getLocal("phit");
  29.       _loc1_.data._iLevelLastPlayed = iLevel;
  30.       _loc1_.flush();
  31.    }
  32. }
  33.